<?php
/*
 * Smarty plugin
 * -------------------------------------------------------------
 * File:     function.icon.php
 * Type:     function
 * Name:     icon
 * Purpose:  inserts an IMG tag for an icon
 * -------------------------------------------------------------
 */
function smarty_function_icon($params, &$smarty)
{
    echo "<img src=\"common/images/icons/{$params['id']}.png\" alt=\"\" align=\"absmiddle\" class=\"ICON\" />";
}
?>